#!/bin/sh

curl -stderr "http://finance.yahoo.com/q/co?s=$1" |sed 's/tr/\n/g' |grep "DIRECT COMPETITOR COMPARISON" -A 5 |tail -n 1 |egrep -o ">[A-Z]+<" |sed -e 's/>//g' -e 's/<//g'

